package com.telit.firecommand.constant;

import cn.hutool.core.map.MapUtil;

import java.util.Map;


/**
 * @Author:zhangwei
 * @Description: 东巴文平台接口地址
 * @Time:Created on 2023/3/30 5:06
 */
public class DBWConstant {

    //获取监控点预览取流URL
    public static final String PREVIEW_URL = "/api/stream/live";
    //获取实时流地址 RTSP/RTMP
    public static final String RTSP_URL = "/api/stream/rtp";
    //附件下载
    public static final String DOWNLOAD_URL = "/api/download";
    //获取设备列表
    public static final String URL_DEVICE = "/api/device/list";
    //获取通道列表
    public static final String URL_CHANNEL = "/api/channel/list";
    //设置预置点信息
    public static final String SET_PRESETS = "/api/ptztour/set";
    //删除预置点信息
    public static final String DEL_PRESETS = "/api/ptztour/delete";
    //查询预置点信息
    public static final String SEARCH_PRESETS = "/api/ptztour/get";
    //根据监控点编号进行云台操作
    public static final String PTZ_CONTROL = "/api/control/ptz";
    //查询巡航路径
    public static final String SEARCH_ROUTES = "";
    //添加或修改巡航路径
    public static final String UPDATE_ROUTES = "";
    //删除巡航路径
    public static final String DELETE_ROUTES = "";
    //巡航路径控制
    public static final String CONTROL_ROUTES = "";
    //获取历史视频回放
    public static final String PLAY_BACK = "/api/stream/playback";

    //云台控制指令转换
    public static final Map<String, String> COMMAND_MAP = MapUtil.newHashMap();

    static {
        COMMAND_MAP.put("LEFT", "left");
        COMMAND_MAP.put("RIGHT", "right");
        COMMAND_MAP.put("UP", "top");
        COMMAND_MAP.put("DOWN", "bottom");
        COMMAND_MAP.put("ZOOM_IN", "zoomIn");
        COMMAND_MAP.put("ZOOM_OUT", "zoomOut");
        COMMAND_MAP.put("LEFT_UP", "topLeft");
        COMMAND_MAP.put("LEFT_DOWN", "bottomLeft");
        COMMAND_MAP.put("RIGHT_UP", "topRight");
        COMMAND_MAP.put("RIGHT_DOWN", "bottomRight");
        COMMAND_MAP.put("FOCUS_NEAR", "focusIn");
        COMMAND_MAP.put("FOCUS_FAR", "focusOut");
        COMMAND_MAP.put("IRIS_ENLARGE", "apertureIn");
        COMMAND_MAP.put("IRIS_REDUCE", "apertureOut");
        COMMAND_MAP.put("WIPER_SWITCH", "");
        COMMAND_MAP.put("START_RECORD_TRACK", "");
        COMMAND_MAP.put("STOP_RECORD_TRACK", "");
        COMMAND_MAP.put("START_TRACK", "cruise");
        COMMAND_MAP.put("STOP_TRACK", "cruise");
        COMMAND_MAP.put("GOTO_PRESET", "preset");
    }

}
